Class 1 – 10/22/2002
Perl Scripting

This class is an introduction to Perl. It will cover the Perl environment, Perl interpreters, general usage/scope, and style/maintainability.

What is Perl?
Perl is an interesting programming language that started as a simple scripting language for generating and printing reports, and has now developed into a full featured programming language.

Where is Perl used?
This class will focus on Perl for system administration and network tasks, as this is what the AMD team uses it for primarily. We will not be focusing on Perl in CGI at this time.

What makes Perl stand out? How can Perl help me be efficient?
Programming languages differ not so much in what they let you do, but in what they make easy. Perl is both a very simple language and a very rich language. You don't have to know everything there is to know about Perl to write useful programs. Perl tries to grow with you – from simple one line scripts to scripts with hundreds of lines and dozens of plug-in modules, Perl is happy to process whatever you give it. Perl is especially suited for tasks that involve text processing, reading and writing of files, anything network related, CGI and web page generation, working with databases, and most any kind of console based task.

What platforms are supported?
Where do you get Perl?
Most Linux/Unix OS's come with it preinstalled, but the latest version can always be downloaded from CPAN.

What Internet resources are available?
Websites
Main Perl Site http://www.perl.com/
Perl Mongers http://www.perl.org/
Perl Monks http://www.perlmonks.org/
Lean Perl http://learn.perl.org/
The Perl Documentation Site http://perldoc.com/
The Perl Intro http://www.perldoc.com/perl5.8.0/pod/perlintro.html
Picking up Perl Online Book http://www.ebb.org/PickingUpPerl/pickingUpPerl_toc.html
Boggle your brain http://www.google.com/

















Class 1 – 10/22/2002
Getting Started

Basic programming thought processes and guidelines


Running Perl programs

Basic syntax overview

Variable types


A Basic Program
print ”Hello world\n”;

Homework